package t4;

import java.util.WeakHashMap;

public class text {
    public static void main(String[] args) {
        Rect rect1 = new Rect(20, 10);
        System.out.println("周长:" + rect1.perimeter());
        System.out.println("面积:" + rect1.area());
        Rect rect2 = new Rect();
        System.out.println("面积:" + rect2.area());
        System.out.println("周长:" + rect2.perimeter());

        PlainRect plainRect1 = new PlainRect(10, 10, 20, 10);
        System.out.println(plainRect1.isInside(25.5, 13));
    }
}
